package com.demo.mvc.ioc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class People {
  @Autowired
  Animal catImpl;

  public void myAnimalSay(){
    catImpl.say();
  }
}
